```rust title="Native Connection"
{{#include docs/examples/rust/nativeexample/examples/connect.rs}}
```

:::note
For the Rust connector, the difference in connection methods is only reflected in the features used. If the "ws" feature is enabled, only the WebSocket implementation will be compiled.

:::
